package com.naver.cul;

public class Calculator {
	String version = "0.1v";

	public int plus(int[] args) {
		int c = 0;
		for (int i = 0; i < args.length; i++) {
			c = c + args[i];
		}
		return c;
	}

	public double squre(double a, int b) {
		double c = 1;
		for (int i = 0; i < b; i++) {
			c = c * a;
		}
		return c;
	}
	
	public double factorier(double a, double b) {
		double c = 1;
		for (int i =0; i < b; i++){
			c = (c-i) * a;
		}
		return c;
	}
}
